package com.ronan.imweb.rpc.fallback;

import com.ronan.common.pojo.SendMsgReq;
import com.ronan.common.pojo.SendMsgVo;
import com.ronan.common.response.Result;
import com.ronan.imweb.rpc.IMServerRpcService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * FileName    : com.ronan.imweb.service.fallback
 * Description :
 *
 * @author : ronan
 * @version : 1.0
 * Create Date : 2021/3/1 10:23
 **/
@Slf4j
@Component
public class IMServerRpcServiceFallBackImpl implements IMServerRpcService {

    /**
     * 推送消息
     *
     * @param req 消息
     * @return {@link Result<Boolean>}
     */
    @Override
    public Result<SendMsgVo> v1SendMsg(SendMsgReq req) {
        log.warn("服务器繁忙,请重试.[sendMsg]:[{}]", req);
        return null;
    }
}
